package org.acompanhamento;

import bancosys.tec.exception.LocalizedMessageHolder;
import bancosys.tec.exception.MessageCreator;
import bancosys.tec.exception.MessageCreatorHelper;


/**
 * Mensagens de Help das paginas
 */
public enum HelpMessages implements MessageCreator {
	CONTROLE_ACESSO(0, "infra.acesso.help"),

	TEAMS(0, "team"),

	TASK_LIST(0, "task.list"),

	TASK_EDIT(0, "task.edit"),

	WORKFLOW_LIST(0, "workflow.list"),

	WORKFLOW_EDIT(0, "workflow.edit"),

	SPRINT_LIST(0, "sprint.list"),

	SPRINT_EDIT(0, "sprint.edit"),

	TASKBOARD(0, "taskboard");

	private final MessageCreator delegate;

	/**
	 * Construtor
	 * 
	 * @param nargs nargs
	 * @param key key
	 */
	private HelpMessages(int nargs, String key) {
		this.delegate = MessageCreatorHelper.creator("webapp-help-message", key, nargs);
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public LocalizedMessageHolder create(Object... arguments) {
		return this.delegate.create(arguments);
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public int getExpectedArguments() {
		return this.delegate.getExpectedArguments();
	}

}
